#!/bin/sh

files="*.xml sdl_globals.c sdl_stuff.c gen_code gen_fun.php"

rm -rf tmp
mkdir tmp
cp $files tmp
cd tmp
./gen_code
phpize
./configure --with-$1
make
cp modules/*.so ..
cd ..
#rm -rf tmp
